<template>
  <div>
    <h1>Home</h1>
    <p>Name: {{ $route.query.name }}</p>
    <p>Age: {{ $route.query.age }}</p>
  </div>
</template>

<script>
export default {
  created() {
    console.log(this.$route.query);
  },
};
</script>
